package abstractclass;

public class Square extends GeometricObject {
    private double sideLength;

    public Square(){

    }

    public Square(double sideLength){
        this.sideLength = sideLength;
    }

    public double getSideLength(){return sideLength;}
    public void setSideLength(double sideLength){this.sideLength = sideLength;}

    public double getArea(){return sideLength * sideLength;}
    public double getPerimeter(){ return sideLength * 4;}

}
